package com.yunfei.core.utils.enmu;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum QuesResultStatus {
    SUCCESS(0, "成功"),
    QUES_TIT_NOTNULL(3000, "问题题目不能为空"),
    ANSW_DTL_NOTNULL(3001, "回答内容不能为空"),
    BROW_MDL_NOTNULL(3002, "浏览模块不能为空"),
    BROW_MDL_NOTEXSITS(30021, "浏览模块不存在"),
    OPER_FLG_NOTNULL(3004, "操作类型不能为空"),
    OPER_FLG_NOTEXSITS(30041, "操作类型不存在"),
    NEWS_COMMENTS(30042, "回复内容ID不能为空"),
    NEWS_COMMENTS_CONTENT(30043, "回复内容不能为空"),
    NEWS_COMMENTS_FLAG(30044, "匿名标识不符合规则");



    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    QuesResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
